package com.niit.user.service;

import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Processor;
import org.springframework.messaging.Message;
import org.springframework.stereotype.Component;

/**
 * @author yaojianfeng
 */
@Component
public class UserMessageReceiver {

    @StreamListener(Processor.INPUT)
    public void receiveReturnMessage(Message<String> msg) {
        System.out.println("receiveReturnMessage 接收到的消息回执是: " + msg.getPayload());
    }
}
